package org.inspursc.s0517.health.common.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author B_Dream
 * @date 2018/5/29 8:51
 */
@Data
public class PermissionForm implements Serializable {

    private Integer id;

    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空!")
    private String name;

    /**
     * 描述
     */
    @NotEmpty(message = "描述不能为空!")
    private String description;

    /**
     * URL
     */
    @NotEmpty(message = "URL不能为空!")
    private String url;

    /**
     * 父ID
     */
    private Integer pid;
}
